<?php
class Zend_View_Helper_ListTopVideo
{
	public function listTopVideo($data,$view)
	{
		$str="";
		$str.="		
			<div class=boxTele'>
			<div class='boxTele_head'>Video</div>
				<div class='boxTele_c'>
				<div class='th-clip-player' id='th-clip-player'></div>
				<div class='list_video' id='list_video'>
					<div class='clip-items'>				
						<div class='clip-item' id='clip-item'>
							<ul>";
							foreach ($data as $row)
							{	
								$url=addslashes($view->baseUrl);									
								$str.="<li><a  onclick='jwplayer().load({file: '".$url.addslashes("/public/video/").$row[url]."', image:'preview.jpg'})'>$row[title]</a></li>";
							}
							$str.="												
						</ul>
					</div>
				
					</div>
				</div>
			</div>
		</div>";
		echo $str;
	}
}

